<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    
    <h:head>
        <title>My Events</title>
    </h:head>
    <h:body>
        <h:form>
        <p:dataList value="#{calendarBean.calendar}" var="event" type="unordered" itemType="none" paginator="true" rows="10" styleClass="paginated">
            <f:facet name="header">
                Paginator
            </f:facet>
            <h:link value="#{event.title} " outcome="eventPage" includeViewParams="true">
                <f:param name="idEv" value="#{event.id}"></f:param>
            </h:link>
            <h:outputText value="from #{event.startDate} to #{event.endDate}"/>
        </p:dataList>
        
        <h:link value="Back Home" outcome="home"/>
        </h:form>
    </h:body>
</html>

